Optimal. Leaf size=83 \[ -\frac {b e n r}{8 x^2}-\frac {e r \left (2 a+b n+2 b \log \left (c x^n\right )\right )}{8 x^2}-\frac {b n \left (d+e \log \left (f x^r\right )\right )}{4 x^2}-\frac {\left (a+b \log \left (c x^n\right )\right ) \left (d+e \log \left (f x^r\right )\right )}{2 x^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 83, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {2341, 2413, 12}
\begin {gather*} -\frac {\left (a+b \log \left (c x^n\right )\right ) \left (d+e \log \left (f x^r\right )\right )}{2 x^2}-\frac {e r \left (2 a+2 b \log \left (c x^n\right )+b n\right )}{8 x^2}-\frac {b n \left (d+e \log \left (f x^r\right )\right )}{4 x^2}-\frac {b e n r}{8 x^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 2341
Rule 2413
Rubi steps
\begin {align*} \int \frac {\left (a+b \log \left (c x^n\right )\right ) \left (d+e \log \left (f x^r\right )\right )}{x^3} \, dx &=-\frac {b n \left (d+e \log \left (f x^r\right )\right )}{4 x^2}-\frac {\left (a+b \log \left (c x^n\right )\right ) \left (d+e \log \left (f x^r\right )\right )}{2 x^2}-(e r) \int \frac {-2 a \left (1+\frac {b n}{2 a}\right )-2 b \log \left (c x^n\right )}{4 x^3} \, dx\\ &=-\frac {b n \left (d+e \log \left (f x^r\right )\right )}{4 x^2}-\frac {\left (a+b \log \left (c x^n\right )\right ) \left (d+e \log \left (f x^r\right )\right )}{2 x^2}-\frac {1}{4} (e r) \int \frac {-2 a \left (1+\frac {b n}{2 a}\right )-2 b \log \left (c x^n\right )}{x^3} \, dx\\ &=-\frac {b e n r}{8 x^2}-\frac {e r \left (2 a+b n+2 b \log \left (c x^n\right )\right )}{8 x^2}-\frac {b n \left (d+e \log \left (f x^r\right )\right )}{4 x^2}-\frac {\left (a+b \log \left (c x^n\right )\right ) \left (d+e \log \left (f x^r\right )\right )}{2 x^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 64, normalized size = 0.77 \begin {gather*} -\frac {2 a d+b d n+a e r+b e n r+e (2 a+b n) \log \left (f x^r\right )+b \log \left (c x^n\right ) \left (2 d+e r+2 e \log \left (f x^r\right )\right )}{4 x^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
3.
time = 0.14, size = 1442, normalized size = 17.37
method | result | size |
risch | \(\text {Expression too large to display}\) | \(1442\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.30, size = 97, normalized size = 1.17 \begin {gather*} -\frac {1}{4} \, b {\left (\frac {r}{x^{2}} + \frac {2 \, \log \left (f x^{r}\right )}{x^{2}}\right )} e \log \left (c x^{n}\right ) - \frac {b n {\left (r + \log \left (f\right ) + \log \left (x^{r}\right )\right )} e}{4 \, x^{2}} - \frac {b d n}{4 \, x^{2}} - \frac {a r e}{4 \, x^{2}} - \frac {b d \log \left (c x^{n}\right )}{2 \, x^{2}} - \frac {a e \log \left (f x^{r}\right )}{2 \, x^{2}} - \frac {a d}{2 \, x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.36, size = 100, normalized size = 1.20 \begin {gather*} -\frac {2 \, b n r e \log \left (x\right )^{2} + b d n + {\left (b n + a\right )} r e + 2 \, a d + {\left (b r e + 2 \, b d\right )} \log \left (c\right ) + {\left (2 \, b e \log \left (c\right ) + {\left (b n + 2 \, a\right )} e\right )} \log \left (f\right ) + 2 \, {\left (b r e \log \left (c\right ) + b n e \log \left (f\right ) + b d n + {\left (b n + a\right )} r e\right )} \log \left (x\right )}{4 \, x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 1.23, size = 128, normalized size = 1.54 \begin {gather*} - \frac {a d}{2 x^{2}} - \frac {a e r}{4 x^{2}} - \frac {a e \log {\left (f x^{r} \right )}}{2 x^{2}} - \frac {b d n}{4 x^{2}} - \frac {b d \log {\left (c x^{n} \right )}}{2 x^{2}} - \frac {b e n r}{4 x^{2}} - \frac {b e n \log {\left (f x^{r} \right )}}{4 x^{2}} - \frac {b e r \log {\left (c x^{n} \right )}}{4 x^{2}} - \frac {b e \log {\left (c x^{n} \right )} \log {\left (f x^{r} \right )}}{2 x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 3.86, size = 116, normalized size = 1.40 \begin {gather*} -\frac {2 \, b n r e \log \left (x\right )^{2} + 2 \, b n r e \log \left (x\right ) + 2 \, b r e \log \left (c\right ) \log \left (x\right ) + 2 \, b n e \log \left (f\right ) \log \left (x\right ) + b n r e + b r e \log \left (c\right ) + b n e \log \left (f\right ) + 2 \, b e \log \left (c\right ) \log \left (f\right ) + 2 \, b d n \log \left (x\right ) + 2 \, a r e \log \left (x\right ) + b d n + a r e + 2 \, b d \log \left (c\right ) + 2 \, a e \log \left (f\right ) + 2 \, a d}{4 \, x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 3.94, size = 83, normalized size = 1.00 \begin {gather*} -\ln \left (f\,x^r\right )\,\left (\frac {a\,e}{2\,x^2}+\frac {b\,e\,n}{4\,x^2}+\frac {b\,e\,\ln \left (c\,x^n\right )}{2\,x^2}\right )-\frac {\frac {a\,d}{2}+\frac {b\,d\,n}{4}+\frac {a\,e\,r}{4}+\frac {b\,e\,n\,r}{4}}{x^2}-\frac {b\,\ln \left (c\,x^n\right )\,\left (2\,d+e\,r\right )}{4\,x^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________